summaryrefslogtreecommitdiffstats
path: root/src/HTTP/HTTPMessage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTTP/HTTPMessage.h')
-rw-r--r--src/HTTP/HTTPMessage.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/HTTP/HTTPMessage.h b/src/HTTP/HTTPMessage.h
index be767a55a..20deab5ab 100644
--- a/src/HTTP/HTTPMessage.h
+++ b/src/HTTP/HTTPMessage.h
@@ -43,7 +43,9 @@ public:
size_t GetContentLength(void) const { return m_ContentLength; }
protected:
- typedef std::map<AString, AString> cNameValueMap;
+
+ using cNameValueMap = std::map<AString, AString>;
+
eKind m_Kind;
@@ -64,12 +66,13 @@ protected:
/** Stores outgoing response headers and serializes them to an HTTP data stream. */
-class cHTTPOutgoingResponse :
+class cHTTPOutgoingResponse:
public cHTTPMessage
{
- typedef cHTTPMessage super;
+ using Super = cHTTPMessage;
public:
+
cHTTPOutgoingResponse(void);
/** Appends the response to the specified datastream - response line and headers.
@@ -85,8 +88,10 @@ public:
class cHTTPIncomingRequest:
public cHTTPMessage
{
- typedef cHTTPMessage Super;
+ using Super = cHTTPMessage;
+
public:
+
/** Base class for anything that can be used as the UserData for the request. */
class cUserData
{
@@ -94,7 +99,7 @@ public:
// Force a virtual destructor in descendants:
virtual ~cUserData() {}
};
- typedef std::shared_ptr<cUserData> cUserDataPtr;
+ using cUserDataPtr = std::shared_ptr<cUserData>;
/** Creates a new instance of the class, containing the method and URL provided by the client. */